﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LocalNas.Application.Hub.Dto
{
    public class SendMessageData
    {
        public DateTime Time { get; set; } = DateTime.Now;
        public string Message { get; set; }
        public string Title { get; set; }
        public MessageTypeEnum MessageType { get; set; }
        public dynamic Data { get; set; }
        /// <summary>
        /// 定义key 前端收到key 以后会通过事件总线转发   优先级大于MessageType
        /// </summary>
        public string EventKey { get; set; }
    }

    public enum MessageTypeEnum
    {
        日志 = 1,
        通知 = 2,
        目录进度 = 3, // 目录上直接显示进度条
        玩客云任务 = 4
    }
}
